<?php
require('includes/top.php');

$div_id = $_POST['division_id'];
$division = $_POST['division'];
$des = $_POST['description'];

$sql = "UPDATE division SET `division_name` = '".$division."', `description` = '".$des."' where division_id='".trim($div_id)."'";
$result=mysql_query($sql);


if($result>0)
{
header('Location: division_details.php?v=success');
}
else
{
header('Location: division_details.php?v=err');
}
?>